#!bin/bash
test_output_directory="bin"
target=$test_output_directory/main

# if [ ! -d "$test_output_directory" ]; then
#     mkdir -p "$test_output_directory"
#     echo "create $test_output_directory"
# fi

# THIRD_PARTY_DIR=../../3rdparty
# TEST_LIB_DIR=$THIRD_PARTY_DIR/catch2/build/src
# TEST_LIB_NAME=Catch2
# TEST_LIB_INCLUDE_DIR=$THIRD_PARTY_DIR/catch2/src

# LOG_LIB_DIR=$THIRD_PARTY_DIR/spdlog
# LOG_LIB_INCLUDE_DIR=$THIRD_PARTY_DIR/spdlog/include
# LOG_LIB_NAME=spdlog

# SOURCE_DIR=../../source

# source_files=("main.cpp" 
#             "test_logger.cpp"
#             "test_catch2.cpp" 
#             "test_parse_http_post.cpp"
#             )

# g++ "${source_files[@]}" -o $target -std=c++17 -Wall \
#         -I$TEST_LIB_INCLUDE_DIR -L$TEST_LIB_DIR -l$TEST_LIB_NAME \
#         -I$LOG_LIB_INCLUDE_DIR -L$LOG_LIB_DIR -l$LOG_LIB_NAME \
#         -I$SOURCE_DIR

./$target [smart_ptr]
